//
//  JrdCourseModel.m
//  iMandarin
//
//  Created by longcheng on 16/7/4.
//  Copyright © 2016年 Singro. All rights reserved.
//

#import "JrdCourseModel.h"
#import "JrdCommon.h"
@implementation JrdCourseModel
+(JrdCourseModel*)initWithArray:(NSArray*)array{
    JrdCourseModel* model = [[JrdCourseModel alloc] init];
    model.courseId = array[COURSE_ID];
    model.courseName = array[COURSE_NAME];
    model.courseDes = array[COURSE_DES];
    model.courseCategory = array[COURSE_CATEGORY];
    model.courseStartTime = array[COURSE_STARTDATE];
    model.courseEndTime = array[COURSE_ENDDATE];
    model.coursePhoto= array[COURSE_ICON_URL];
    return model;
}

-(void)initwithData:(JrdCourseModel*)model Data:(NSArray*)array{
    model.courseId = array[COURSE_ID];
    model.courseName = array[COURSE_NAME];
    model.courseDes = array[COURSE_DES];
    model.courseCategory = array[COURSE_CATEGORY];
    model.courseStartTime = array[COURSE_STARTDATE];
    model.courseEndTime = array[COURSE_ENDDATE];
    model.coursePhoto= array[COURSE_ICON_URL];

}
@end
